<?php
/**
 * Created by PhpStorm.
 * User: coolinmind
 * Date: 14/01/2019
 * Time: 14:26
 */

namespace App\Modules\Wallet;


use App\Modules\UCenter\BaseUcenter;
use App\Services\Fund\FundIndex;
use App\Services\User\UserIndex;

class FundOptionLog extends BaseUcenter
{
    // 获取资金操作日志
    public function fundLogList(): array
    {
        $userInfo = $this->isLogin();
        $data = pick_array($this->postData, ['page', 'list_rows','type']);
        $data['user_ids'] = $userInfo['res']['id'];
        return FundIndex::FundOptionLog()->listByUserIds($data);
    }
}
